package com.chl.legou.item.api;

import com.chl.legou.item.po.Spu;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping(value = "/spu")
public interface SpuApi {
    @ApiOperation(value = "查询所有的spu",notes = "查询所有的spu")
    @GetMapping("/list-all")
    public List<Spu> selectAll();

    @ApiOperation(value="加载", notes="根据ID加载")
    @GetMapping("/edit/{id}")
    public Spu edit(@PathVariable Long id);
}
